2522377854a7dccf26182025c2e0cf105e9ee5b2,src/main/java/me/jcala/blog/service/BlogSerImpl.java,BlogSerImpl,getBlogPage,#number#,61
Before Change
@Override
public List<BlogView> getBlogPage(int id) throws RuntimeException{
int start=(id-1)*10;
return blogMapper.selectTenBlogs(start);
}
@Override
public int adminGetPageNum() throws RuntimeException{
After Change
}
@Override
public List<BlogView> getBlogPage(int id){
List<BlogView> blogList=new ArrayList<>();
try {
int start=(id-1)*10;
blogList=blogMapper.selectTenBlogs(start);
} catch (Exception e) {
LOGGER.error(e.getMessage());
}
return blogList;
}
@Override
public int getPageNum(){